import { useNuxtApp } from '#app';

export const getTrStrategyList = async (params) => {
  const { $httpRequest } = useNuxtApp();  // 从 Nuxt 上下文中获取 $httpRequest
  return await $httpRequest.GET("/public/strategy/list", params);
};

export const getTrStrategyView = async (id) => {
  const { $httpRequest } = useNuxtApp();  // 同样获取 $httpRequest
  return await $httpRequest.GET(`https://www.halloparty.com/travel/public/strategy/ghijk/${id}`);
};
